Skip to content

Add timeout to the rollout status - #425

Merged
bosesuneha merged 14 commits into
Azure:mainfrom
benjaminbob21:feat/timeout_in_rollout_status
Jul 9, 2025
Merged

Add timeout to the rollout status #425
bosesuneha merged 14 commits into
Azure:mainfrom
benjaminbob21:feat/timeout_in_rollout_status

Conversation

@benjaminbob21

@benjaminbob21 benjaminbob21 commented Jul 3, 2025

Copy link
Copy Markdown
Contributor

@benjaminbob21
benjaminbob21 marked this pull request as ready for review July 5, 2025 18:19
Comment thread src/strategyHelpers/blueGreen/blueGreenHelper.test.ts Outdated
Comment thread src/strategyHelpers/blueGreen/deploy.ts
Comment thread src/actions/promote.ts
@Tatsinnit Tatsinnit added bug Something isn't working enhancement Feature request/improved experience labels Jul 5, 2025
Comment thread src/actions/deploy.ts
Comment thread src/actions/promote.ts
Comment thread src/actions/promote.ts
Comment thread src/strategyHelpers/blueGreen/blueGreenHelper.ts
Comment thread src/strategyHelpers/blueGreen/promote.test.ts
Comment thread action.yml
Comment thread package-lock.json
Comment thread src/strategyHelpers/blueGreen/blueGreenHelper.test.ts
Comment thread src/strategyHelpers/blueGreen/deploy.test.ts
@Tatsinnit
Tatsinnit requested a review from Copilot July 5, 2025 21:44

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces an optional timeout parameter to kubectl operations and rollout status checks, and wires it through deployment, canary, and blue-green strategy helpers, their tests, the GitHub Action entrypoint, and CLI runner.

  • Added timeout?: string to checkManifestStability and all Kubectl methods.
  • Propagated timeout through strategy helpers (deploySMICanary, deployPodCanary, blue-green helpers, etc.), run.ts, and action inputs.
  • Expanded unit tests to verify timeout is passed correctly and updated action.yml and integration workflow accordingly.

Reviewed Changes

Copilot reviewed 26 out of 27 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/types/kubectl.ts Extended Kubectl API with timeout, updated apply, execute, delete, etc.
src/utilities/manifestStabilityUtils.ts Updated checkManifestStability signature to accept timeout.
src/run.ts Passes timeout from action input into core commands.
action.yml Added timeout input definition.
.github/workflows/run-integration-tests... Added SMI setup step; no timeout-related changes.
Strategy & helper files & tests Propagated timeout through all strategy helpers and corresponding tests.
Comments suppressed due to low confidence (2)

src/types/kubectl.ts:52

  • The timeout flag is being appended here and again in execute, which will produce duplicate --timeout entries. Remove this push and let execute handle adding the timeout argument exactly once.
         if (timeout) applyArgs.push(`--timeout=${timeout}`)

src/types/kubectl.ts:35

  • The method currently pushes the entire configurationPaths array as one element. To match test expectations and kubectl syntax, explicitly flatten or join the array (e.g. iterate each path with its own -f flag or comma-join) instead of passing it directly.
   public async apply(

Comment thread src/types/kubectl.ts Outdated
Comment thread src/run.ts Outdated
Comment thread src/run.test.ts Outdated

@Tatsinnit Tatsinnit left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Thank you so much for the kind ping around this, looks great! please get reviews from @davidgamero and @bosesuneha for any user scenario missed. thank you!

Comment thread src/strategyHelpers/deploymentHelper.ts Outdated
Comment thread src/types/kubectl.ts Outdated

@bosesuneha bosesuneha left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@bosesuneha
bosesuneha merged commit ac0b58c into Azure:main Jul 9, 2025
13 checks passed
@bosesuneha bosesuneha mentioned this pull request Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement Feature request/improved experience

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants